home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / m68k / 538 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.9 KB

  1. Path: raven.inka.de!not-for-mail
  2. From: jw@raven.inka.de (Josef Wolf)
  3. Newsgroups: comp.sys.m68k
  4. Subject: Re: MC68332/TPU programming
  5. Date: 6 Apr 1996 13:09:48 +0200
  6. Organization: PPC Germersheim (Germany), raven on the wire
  7. Message-ID: <4k5jds$j7c@raven.inka.de>
  8. References: <31581C41.104A@telogy.com>
  9. NNTP-Posting-Host: raven.inka.de
  10. X-Newsreader: NN version 6.5.0 #4 (NOV)
  11.  
  12. In <31581C41.104A@telogy.com> Christine Price <cprice@telogy.com> writes:
  13. >I'm learning how to design with the MC68332.  I have an existing design
  14. >that I must retro-fit with this new processor.  The old design incor-
  15. >porates a 12.288MHz clock.  It also derives a divide by 4 signal from
  16. >this clock.  The problem I have is that it would be nice to run the new
  17. >processor at 20MHz but I can't seem to find a way to generate both the
  18. >12.288MHz and the 3.072MHz signal from the system clock using the TPU.
  19. >Does anyone know of a way to do this?
  20.  
  21. The TPU needs 12 clocks for a time slot transition plus additional
  22. commands (depends on the tpu-code. So you just won't be able to generate
  23. anything above 833kHz with 20MHz system-clock.
  24.  
  25. If you want to generate fast clocks with the tpu you have to _abuse_ it.
  26.  
  27. hack away u-code which does the following:
  28.     clr cflg0.
  29.   T:
  30.     pin := high;
  31.     if cflg0 == 0 then goto T.
  32.     pin := low.
  33.  
  34. This will give you SYSCLK/4, so you can get 3.072MHz if you run the CPU
  35. with 12.288MHz.
  36.  
  37. You can even get SYSCLK/6 if you can accept a duty-cycle of 67% :
  38.  
  39.     clr cflg0.
  40.   T:
  41.     pin := high.     (* <- note the dot instead of a semicolon! *)
  42.     if cflg0 == 0 then goto T.
  43.     pin := low.
  44.  
  45. Now you can get your 3.072MHz with a SYSCLK of 18.432MHz. You _can't_ get
  46. the 12.288MHz this way.
  47.  
  48. Note that there are _no_ more time slot transitions and the tpu therefore
  49. won't be able to perform _any_ other task. A price I would not like to pay.
  50.  
  51. I suggest to copy the 12.288 and 3.072 MHz from the old design.
  52.  
  53. Greetings
  54. -- 
  55. -- Josef Wolf -- jw@raven.inka.de -- Germersheim, Germany --
  56.